function getPermissionAsk(groupID){
	
	$.ajax({
		type: "GET",
		url: "groups.xml",
		dataType: "xml",
		success: function(xml) {
			
			
			$(xml).find('grupo ').each(function(){
				
				var id = $(this).attr('id');
				
				if(id==groupID){
					return $(this).find('permissionAsk').text();
				}
				
			});
		}
	
	});
	
	
}
	

function numAuthorizations(groupID){
	
	$.ajax({
		type: "GET",
		url: "groups.xml",
		dataType: "xml",
		success: function(xml) {
			
			
			$(xml).find('grupo ').each(function(){
				
				var id = $(this).attr('id');
				
				if(id==groupID){
					return $(this).find('numAuthorizations').text();
				}
			
			});
			
		}
	
	});
	
	
}


function accessGrant(groupID){
		
	$.ajax({
		type: "GET",
		url: "groups.xml",
		dataType: "xml",
		success: function(xml) {
			
			
			$(xml).find('grupo ').each(function(){
				
				var id = $(this).attr('id');
				
				if(id==groupID){
					return $(this).find('accessGrant').text();
				}
			
			});

		}
	
	});
	
	
}



function editionDone(groupID){
	
	$.ajax({
		type: "GET",
		url: "groups.xml",
		dataType: "xml",
		success: function(xml) {
			
			
			$(xml).find('grupo ').each(function(){
				
				var id = $(this).attr('id');
				
				if(id==groupID){
					return $(this).find('editionDone').text();
				}
			
			});

		}
	
	});
	
	
}

